"""Tests the main handler"""

import unittest
from gaweb.master.handlers import main_handler


class MainHandlerTest(unittest.TestCase):
    """Tests for the MainHandler class."""

    def test_do_index(self):
        s = main_handler.MainHandler.do_index()
        self.assertTrue(isinstance(s, basestring))
        self.assertTrue(len(s) > 0)


if __name__ == '__main__':
    unittest.main()
